package com.finace.money.di.module;

import com.finace.money.data.InformationModel;
import com.finace.money.data.http.ApiService;
import com.finace.money.presenter.contract.InformationContract;

import dagger.Module;
import dagger.Provides;

/**
 * Created by zhangpeng on 2018/1/27.
 */

@Module
public class InformationModule {

    public InformationContract.View mView;

    public InformationModule(InformationContract.View mView) {
        this.mView = mView;
    }

    @Provides
    public InformationContract.IInformationModel provideModel(ApiService apiService){
        return new InformationModel(apiService);
    }

    @Provides
    public InformationContract.View provideView(){
        return mView;
    }
}
